﻿<UserControl x:Class="Albatross.Shell.Views.ModuleDetailView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
	<UserControl.Resources>
		<Style TargetType="TextBlock" x:Key="Header">
			<Setter Property="FontSize" Value="20"/>
			<Setter Property="HorizontalAlignment" Value="Left"/>
			<Setter Property="VerticalAlignment" Value="Center"/>
		</Style>
		<Style TargetType="TextBlock" x:Key="Label">
			<Setter Property="HorizontalAlignment" Value="Right"/>
			<Setter Property="VerticalAlignment" Value="Top"/>
			<Setter Property="Width" Value="100"/>
			<Setter Property="TextWrapping" Value="Wrap"/>
			<Setter Property="Margin" Value="2"/>
		</Style>
		<Style TargetType="TextBlock" x:Key="Content">
			<Setter Property="HorizontalAlignment" Value="Left"/>
			<Setter Property="VerticalAlignment" Value="Top"/>
			<Setter Property="Margin" Value="2"/>
			<Setter Property="TextWrapping" Value="Wrap"/>
		</Style>
	</UserControl.Resources>
	<DockPanel Margin="10">
		<DockPanel DockPanel.Dock="Top">
			<Image Source="{Binding Icon}" Width="32" Height="32" HorizontalAlignment="Stretch" Margin="2"/>
			<TextBlock Style="{StaticResource Header}" Text="{Binding Name, FallbackValue='Module Detail'}" Margin="5 2 2 2" />
		</DockPanel>
		<Separator DockPanel.Dock="Top" />
		
		<DockPanel DockPanel.Dock="Top">
			<TextBlock Style="{StaticResource Label}">Class Name</TextBlock>
			<TextBlock Style="{StaticResource Content}" Text="{Binding ClassName, FallbackValue=ClassName}"/>
		</DockPanel>
		
		<DockPanel DockPanel.Dock="Top">
			<TextBlock Style="{StaticResource Label}">Is Enabled</TextBlock>
			<TextBlock Style="{StaticResource Content}" Text="{Binding IsEnabled, FallbackValue=IsEnabled}"/>
		</DockPanel>

		<DockPanel DockPanel.Dock="Top">
			<TextBlock Style="{StaticResource Label}">Assembly</TextBlock>
			<TextBlock Style="{StaticResource Content}" Text="{Binding Assembly, FallbackValue=Assembly}"/>
		</DockPanel>

		<DockPanel DockPanel.Dock="Top">
			<TextBlock Style="{StaticResource Label}">Assembly Version</TextBlock>
			<TextBlock Style="{StaticResource Content}" Text="{Binding AssemblyVersion, FallbackValue=AssemblyVersion}"/>
		</DockPanel>

		<DockPanel DockPanel.Dock="Top">
			<TextBlock Style="{StaticResource Label}">File Version</TextBlock>
			<TextBlock Style="{StaticResource Content}" Text="{Binding FileVersion, FallbackValue=FileVersion}"/>
		</DockPanel>

		<DockPanel DockPanel.Dock="Top">
			<TextBlock Style="{StaticResource Label}">Status</TextBlock>
			<TextBlock Style="{StaticResource Content}" Text="{Binding Status, FallbackValue=Status}"/>
		</DockPanel>

		<DockPanel>
		</DockPanel>
	</DockPanel>
</UserControl>
